﻿using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;

using System.Reflection;

namespace BundleB
{
    class BundleBActivator
    {
        public IEnumerable<Assembly> Assemblies { get; private set; }

        private readonly string _location;
        public BundleBActivator(IConfiguration manifest) => _location = manifest["location"];

        /// 应用启动
        /// </summary>
        /// <param name="context"></param>
        public void Start(IServiceProvider provider)
        {
        }

        public void Configure(IConfiguration configuration, IServiceCollection services)
        {

        }

        void OnAddinStateChanged(int addinId, string addinName, int addinState)
        {
            //if (addinName == "BundleB")
            //{
            //    Console.WriteLine($"{addinId} [{addinName}] {addinState}");
            //}
        }
    }
}